import { POST as post } from '../axios.config.js'

const base = config.ip
const projectName = '/topnet-assess'

// 加分项--获取指标列表
export const listIndexList = p => post(`${base}${projectName}/sa-bonus-points/listIndexList`, p)
// 加分项--申请个人/部门加分项
export const addBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/addBonusPoints`, p)
// 加分项--录入加减分项
export const inputBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/inputBonusPoints`, p)
// 加分项--获取加减分项详情
export const getBonusPointsDetails = p => post(`${base}${projectName}/sa-bonus-points/getBonusPointsDetails`, p)
// 加分项--加分项审定
export const confirmBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/confirmBonusPoints`, p)
// 加分项--驳回后修改加分项
export const updateBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/updateBonusPoints`, p)
// 查看加分项申报列表(个人/部门)
export const listBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/listBonusPoints`, p)
// 加分项--考核办查看加减分项录入列表顶部数目
export const getInputBonusPointsCount = p => post(`${base}${projectName}/sa-bonus-points/getInputBonusPointsCount`, p)
// 加分项--查看加减分项录入列表
export const getListInputBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/listInputBonusPoints`, p)
// 获取加分项审定列表(个人/部门)顶部数目
export const getBonusConfirmListCount = p => post(`${base}${projectName}/sa-bonus-points/getBonusConfirmListCount`, p)
// 获取加分项审定列表(个人/部门)
export const listBonusConfirm = p => post(`${base}${projectName}/sa-bonus-points/listBonusConfirm`, p)
// 加分项--试点办获取所有科室
export const getSelectAllDepartment = p => post(`${base}${projectName}/sa-bonus-points/selectAllDepartment`, p)
// 加分项--试点办获取科室人员
export const getselectAllUserByDepartment = p =>
  post(`${base}${projectName}/sa-bonus-points/selectAllUserByDepartment`, p)
// 加分项--导出列表
export const importBonusData = p => `${base}${projectName}/sa-bonus-points/downloadSaBonusList${p}`
// 加分项--季度
export const selectYearAndQuarter = p => post(`${base}${projectName}/sa-bonus-points/selectYearAndQuarter`, p)
// 获取单位列表
export const getListAllOrg = p => post(`${base}${projectName}/sa-bonus-points/listAllOrg`, p)
// 获取单位下所有人
export const getListAllUserByOrgId = p => post(`${base}${projectName}/sa-bonus-points/listAllUserByOrgId`, p)
// 加减分项退回
export const returnBonusPoints = p => post(`${base}${projectName}/sa-bonus-points/returnBonusPoints`, p)
// 获取首页加分项已读未读
export const getIsReadStatus = p => post(`${base}${projectName}/sa-bonus-points/getIsReadStatus`, p)
// 更新查阅状态
export const updateReadStatus = p => post(`${base}${projectName}/sa-bonus-points/updateReadStatus`, p)
